package cn.source.system.service.impl;

import java.util.List;
import cn.source.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.source.system.mapper.SchoolZyzYearAdmissionMapper;
import cn.source.system.domain.SchoolZyzYearAdmission;
import cn.source.system.service.ISchoolZyzYearAdmissionService;

/**
 * 年度学校各专业组录取情况Service业务层处理
 * 
 * @author sourcebyte.vip
 * @date 2025-06-01
 */
@Service
public class SchoolZyzYearAdmissionServiceImpl implements ISchoolZyzYearAdmissionService 
{
    @Autowired
    private SchoolZyzYearAdmissionMapper schoolZyzYearAdmissionMapper;

    /**
     * 查询年度学校各专业组录取情况
     * 
     * @param id 年度学校各专业组录取情况主键
     * @return 年度学校各专业组录取情况
     */
    @Override
    public SchoolZyzYearAdmission selectSchoolZyzYearAdmissionById(Long id)
    {
        return schoolZyzYearAdmissionMapper.selectSchoolZyzYearAdmissionById(id);
    }

    /**
     * 查询年度学校各专业组录取情况列表
     * 
     * @param schoolZyzYearAdmission 年度学校各专业组录取情况
     * @return 年度学校各专业组录取情况
     */
    @Override
    public List<SchoolZyzYearAdmission> selectSchoolZyzYearAdmissionList(SchoolZyzYearAdmission schoolZyzYearAdmission)
    {
        return schoolZyzYearAdmissionMapper.selectSchoolZyzYearAdmissionList(schoolZyzYearAdmission);
    }

    public List<SchoolZyzYearAdmission> selectFixSchoolZyzYearAdmissionList(SchoolZyzYearAdmission schoolZyzYearAdmission)
    {
        return schoolZyzYearAdmissionMapper.selectFixSchoolZyzYearAdmissionList(schoolZyzYearAdmission);
    }

    /**
     * 新增年度学校各专业组录取情况
     * 
     * @param schoolZyzYearAdmission 年度学校各专业组录取情况
     * @return 结果
     */
    @Override
    public int insertSchoolZyzYearAdmission(SchoolZyzYearAdmission schoolZyzYearAdmission)
    {
        schoolZyzYearAdmission.setCreateTime(DateUtils.getNowDate());
        return schoolZyzYearAdmissionMapper.insertSchoolZyzYearAdmission(schoolZyzYearAdmission);
    }

    /**
     * 修改年度学校各专业组录取情况
     * 
     * @param schoolZyzYearAdmission 年度学校各专业组录取情况
     * @return 结果
     */
    @Override
    public int updateSchoolZyzYearAdmission(SchoolZyzYearAdmission schoolZyzYearAdmission)
    {
        schoolZyzYearAdmission.setUpdateTime(DateUtils.getNowDate());
        return schoolZyzYearAdmissionMapper.updateSchoolZyzYearAdmission(schoolZyzYearAdmission);
    }

    /**
     * 批量删除年度学校各专业组录取情况
     * 
     * @param ids 需要删除的年度学校各专业组录取情况主键
     * @return 结果
     */
    @Override
    public int deleteSchoolZyzYearAdmissionByIds(Long[] ids)
    {
        return schoolZyzYearAdmissionMapper.deleteSchoolZyzYearAdmissionByIds(ids);
    }

    /**
     * 删除年度学校各专业组录取情况信息
     * 
     * @param id 年度学校各专业组录取情况主键
     * @return 结果
     */
    @Override
    public int deleteSchoolZyzYearAdmissionById(Long id)
    {
        return schoolZyzYearAdmissionMapper.deleteSchoolZyzYearAdmissionById(id);
    }
}
